package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工对象 l_employee
 *
 * @author zyb
 * @date 2022-01-02
 */
@Data
public class LEmployee extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "empid", type = IdType.AUTO)
    private Integer empid;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 业务员标识 */
    @Excel(name = "业务员标识")
    private Integer issale;

    /** 司机标识 */
    @Excel(name = "司机标识")
    private Integer isdriver;

    /** 紧急联系人 */
    @Excel(name = "紧急联系人")
    private String contractor;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String idnumber;

    /** 现住地址 */
    @Excel(name = "现住地址")
    private String address;

    /** 联系手机 */
    @Excel(name = "联系手机")
    private String tel;

    /** 性别 */
    @Excel(name = "性别")
    private Integer sex;

    /** 部门ID */
    private Long depid;

    /** 部门 */
    @Excel(name = "部门")
    @TableField(exist = false)
    private String deptName;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("empid", getEmpid())
            .append("code", getCode())
            .append("name", getName())
            .append("issale", getIssale())
            .append("isdriver", getIsdriver())
            .append("contractor", getContractor())
            .append("idnumber", getIdnumber())
            .append("address", getAddress())
            .append("tel", getTel())
            .append("sex", getSex())
            .append("depid", getDepid())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
